package com.xxy.mybatispluspro.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;


@Service
public class RedisServiceImpl implements RedisService{

    @Autowired
    private RedisTemplate redisTemplate;
    @Override
    public Object getProjectsByHash(String key) {
    Object projectList = redisTemplate.opsForValue().get(key);
      return projectList;
    }

    @Override
    public void setProjectsHash(String key, Object object) {
        redisTemplate.opsForValue().set(key,object);
    }
}
